﻿using System.ComponentModel.DataAnnotations;
using Abp.AutoMapper;
using SPACore.Phonebook.Phonebooks.PhoneNumbers;

namespace SPACore.Phonebook.Persons.Dtos
{
    public class PhoneNumberEditDto
    {
        public long? Id { get; set; }

        /// <summary>
        /// 电话号码
        /// </summary>
        [Required]
        [MaxLength(AppConsts.MaxPhoneNumberLength)]
        public string Number { get; set; }
        public PhoneNumberType Type { get; set; }
        public int PersonId { get; set; }
    }
}